import request from '@/utils/request'

// 查询休假维护类型天数列表
export function listOaVacationType(query) {
  return request({
    url: '/type/oaVacationType/list',
    method: 'get',
    params: query
  })
}

// 查询休假维护类型天数详细
export function getOaVacationType(id) {
  return request({
    url: '/type/oaVacationType/' + id,
    method: 'get'
  })
}

// 保存休假维护类型天数
export function saveOaVacationType(data) {
  return request({
    url: '/type/oaVacationType/save',
    method: 'post',
    data: data
  })
}

// 删除休假维护类型天数
export function delOaVacationType(id) {
  return request({
    url: '/type/oaVacationType/' + id,
    method: 'delete'
  })
}

// 导出休假维护类型天数
export function exportOaVacationType(query) {
  return request({
    url: '/type/oaVacationType/export',
    method: 'get',
    params: query
  })
}

// 获取全部休假类型
export function findAll() {
  return request({
    url: '/type/oaVacationType/findAll',
    method: 'get'
  })
}
